//package com.cgtu.cgtucalculator.controller;
//
//import com.cgtu.cgtucalculator.dto.Result;
//import com.cgtu.cgtucalculator.util.CanCountable;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/science")
//public class Science {
//    @GetMapping("/{str}")
//    public Result standardCount(@PathVariable String str){
//        return getResult(str);
//    }
//
//    static Result getResult(@PathVariable String str) {
//        CanCountable canCountable=new CanCountable();
//        try {
//            if(!canCountable.isErrorStr(str)){
//
//            }
//        } catch (Exception e) {
//            return .error().setCode(501).setMessage(e.getMessage()).setSuccess(false);
//        }
//        return Result.error().setCode(501).setMessage("表达式格式错误").setSuccess(false);
//    }
//}
